package com.data.common.crm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author zhangzhiwei
 * @since 2020-06-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AdminDept对象", description="部门表")
public class AdminDeptVo implements Serializable {

    private static final long serialVersionUID=1L;

    private Integer deptId;

    @ApiModelProperty(value = "父级ID 顶级部门为0")
    private Integer pid;

    @ApiModelProperty(value = "部门名称")
    private String name;

    @ApiModelProperty(value = "部门别名")
    private String otherName;

    @ApiModelProperty(value = "排序 越大越靠后")
    private Integer num;

    @ApiModelProperty(value = "部门备注")
    private String remark;

    @ApiModelProperty(value = "部门负责人")
    private Long ownerUserId;

    @ApiModelProperty(value = "bp负责人id")
    private Long ownerBpId;

    @ApiModelProperty("当前部门在职人数")
    @TableField(exist = false)
    private Integer currentNum;

    @ApiModelProperty(value = "部门三方code")
    private String codeThird;

    @ApiModelProperty(value = "节点级别0-主体   1-项目   2-城市  3-片区 4-站点")
    private Integer deptLevel;

    @ApiModelProperty(value = "节点类型0-汇流    1-甲方公司 2-乙方公司")
    private Integer deptType;

    @ApiModelProperty(value = "站点地址")
    private String deptAddress;

    @ApiModelProperty(value = "城市编码")
    private String cityCode;

    @ApiModelProperty(value = "禁用标识 0-禁用 1-启用")
    private Integer isDisable;

    @ApiModelProperty(value = "渠道属性")
    private String channelAttribute;

    @ApiModelProperty(value = "内部类型 1-rp机构")
    private Integer interType;


}
